package net.guoyixian.admin.pojo;

import java.util.Set;

public class Permissions {
	private Integer id;
	private String name;
	private String permission;
	private String url;
	private Integer available;
	private Integer parentId;
	private Integer sort;
	private Integer type;
	private String description;
	private Set<Permissions> children;


	public Permissions() {
		super();
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return this.id;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public String getPermission() {
		return this.permission;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return this.url;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setAvailable(Integer available) {
		this.available = available;
	}

	public Integer getAvailable() {
		return this.available;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getParentId() {
		return this.parentId;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return this.type;
	}
	
	

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}


	public Set<Permissions> getChildren() {
		return children;
	}

	public void setChildren(Set<Permissions> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return "Permissions [id=" + id + ", name=" + name + ", permission=" + permission + ", url=" + url
				+ ", available=" + available + ", parentId=" + parentId + ", sort=" + sort + ", type=" + type
				+ ", description=" + description + ", children=" + children + "]";
	}

}
